Skip to content

Conversation

@mvafin
Copy link
Contributor

@mvafin mvafin commented Oct 17, 2025

Details:

  • Support string constants
  • Fix issue with opset version for ai.onnx domain
  • Make frontend fail gracefully if file can't be read

Tickets:

@mvafin mvafin requested a review from a team as a code owner October 17, 2025 17:16
@mvafin mvafin added this to the 2025.4 milestone Oct 17, 2025
@mvafin mvafin requested review from bumbosiepsak and removed request for a team October 17, 2025 17:16
@github-actions github-actions bot added category: ONNX FE OpenVINO ONNX FrontEnd category: CPP API OpenVINO CPP API bindings labels Oct 17, 2025
Signed-off-by: Maxim Vafin <maxim.vafin@intel.com>
Copy link
Contributor

@bumbosiepsak bumbosiepsak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Consider double-checking with Copilot.

@mvafin mvafin requested a review from Copilot October 20, 2025 15:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the ONNX delegate by adding support for string constants, fixing the opset version handling for the ai.onnx domain, and improving error handling when model files cannot be read.

Key changes:

  • Added support for string constant tensors through new m_tensor_data_any field
  • Fixed opset version resolution to correctly handle the ai.onnx domain mapping
  • Improved error messages and exception handling for file reading failures

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/frontends/onnx/tests/onnx_importer_test.cpp Fixed typo in test error message
src/frontends/onnx/frontend/src/input_model.cpp Refactored constructor delegation and added m_tensor_data_any parameter
src/frontends/onnx/frontend/src/core/tensor.hpp Added m_tensor_data_any field and getter to support string constants
src/frontends/onnx/frontend/src/core/tensor.cpp Implemented string data extraction and constant creation for string tensors
src/frontends/onnx/frontend/src/core/node.cpp Updated tensor place construction to include m_tensor_data_any
src/frontends/onnx/frontend/src/core/graph_iterator_proto.cpp Fixed opset version logic, improved error handling, and added string data extraction
src/frontends/onnx/frontend/src/core/decoder_proto.hpp Simplified domain handling by removing special case for ai.onnx
src/frontends/onnx/frontend/include/openvino/frontend/onnx/decoder.hpp Added m_tensor_data_any field to TensorMetaInfo struct

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mvafin mvafin added this pull request to the merge queue Oct 20, 2025
Merged via the queue into openvinotoolkit:master with commit 8f23526 Oct 20, 2025
210 of 212 checks passed
@mvafin mvafin deleted the mvafin/onnx/delegate_improve branch October 20, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: CPP API OpenVINO CPP API bindings category: ONNX FE OpenVINO ONNX FrontEnd Code Freeze

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants